package com.icetech.eom.service.impl.sys;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.icetech.eom.dao.sys.RoleDepartmentDao;
import com.icetech.eom.domain.sys.RoleDepartment;
import com.icetech.eom.service.sys.IRoleDepartmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author wangzw
 * @since 2018-12-10
 */
@Service
public class RoleDepartmentServiceImpl extends ServiceImpl<RoleDepartmentDao, RoleDepartment> implements IRoleDepartmentService {
    @Autowired
    private RoleDepartmentDao roleDepartmentDao;
    @Override
    public List<RoleDepartment> findByRoleId(Long roleId) {
        return roleDepartmentDao.findByRoleId(roleId);
    }

    @Override
    public void deleteByRoleId(Long roleId) {
        roleDepartmentDao.deleteByRoleId(roleId);
    }
}
